package com.yuanfeng.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.business.entity.ShopMemberGradeSetEntity;
import com.yuanfeng.business.mapper.ShopMemberGradeSetMapper;
import com.yuanfeng.business.service.ShopMemberGradeSetService;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class ShopMemberGradeSetServiceImpl extends ServiceImpl<ShopMemberGradeSetMapper, ShopMemberGradeSetEntity>
    implements ShopMemberGradeSetService{

    @Override
    public ResponseResult findMemberDiscount(Integer shopId, String userId) {
        int discount = this.baseMapper.findByIds(shopId, userId);

        return ResponseResult.success(discount);
    }
}




